home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1996 August / WPCAUG96.ISO / mgiwaug.dxr / 00011_MGINoiseMove, MGIPosterHighLight.ls < prev    next >
Encoding:
Text File  |  1996-06-14  |  12.5 KB  |  304 lines

  1. on MGINoiseMove
  2.   global MGIIntroCounter, MGINoiseSprite, MGILogoSprite, MGIFoodPosterSprite, MGIFindTV, MGIMasterList, MGILastPosterSprite, MGIInternetTextList, MGIWhichHomeMacList, MGIWhichHomePCList, MGIGETCount, MGISTONEON
  3.   if MGISTONEON = 0 then
  4.     if the mouseUp and (MGIFindTV = 2) then
  5.       set MGIFindTV to 3
  6.     end if
  7.     if rollOver(MGILogoSprite) then
  8.       set the castNum of sprite MGINoiseSprite to 59
  9.       if MGIFindTV = 1 then
  10.         set the castNum of sprite getAt(getAt(MGIInternetTextList, 1), 1) to getAt(getAt(MGIInternetTextList, 1), 8)
  11.         set the locH of sprite getAt(getAt(MGIInternetTextList, 1), 1) to getAt(getAt(MGIInternetTextList, 1), 3)
  12.         set the locV of sprite getAt(getAt(MGIInternetTextList, 1), 1) to getAt(getAt(MGIInternetTextList, 1), 4)
  13.         set the ink of sprite getAt(getAt(MGIInternetTextList, 1), 1) to getAt(getAt(MGIInternetTextList, 1), 5)
  14.         set the locH of sprite 28 to 2000
  15.         set the locH of sprite 29 to 2000
  16.         set the ink of sprite MGINoiseSprite to 36
  17.         set the castNum of sprite 47 to the castNum of sprite 47 - 1
  18.         updateStage()
  19.         MGISpinE()
  20.         set the locH of sprite 2 to the mouseH
  21.         set the locV of sprite 2 to the mouseV
  22.       end if
  23.       repeat while rollOver(MGILogoSprite) or rollOver(getAt(getAt(MGIInternetTextList, 1), 1))
  24.         MGISpinE()
  25.         if MGIFindTV = 1 then
  26.           repeat while MGIFindTV = 1
  27.             MGISpinE()
  28.             set the locH of sprite 2 to the mouseH
  29.             set the locV of sprite 2 to the mouseV
  30.             if the mouseDown then
  31.               cursor(200)
  32.               set the locH of sprite 34 to 2000
  33.               set the locH of sprite 2 to 2000
  34.               updateStage()
  35.               repeat with d = MGIFoodPosterSprite to MGILastPosterSprite
  36.                 MGISpinE()
  37.                 set g to d - MGIFoodPosterSprite + 1
  38.                 set the castNum of sprite getAt(getAt(MGIInternetTextList, g), 1) to getAt(getAt(MGIInternetTextList, g), 8)
  39.                 set the locH of sprite getAt(getAt(MGIInternetTextList, g), 1) to getAt(getAt(MGIInternetTextList, g), 3)
  40.                 set the locV of sprite getAt(getAt(MGIInternetTextList, g), 1) to getAt(getAt(MGIInternetTextList, g), 4)
  41.                 set the ink of sprite getAt(getAt(MGIInternetTextList, g), 1) to getAt(getAt(MGIInternetTextList, g), 5)
  42.                 updateStage()
  43.                 set the locV of sprite d to 550
  44.                 repeat while the locV of sprite d > (407 + 15)
  45.                   set the locV of sprite d to the locV of sprite d - 15
  46.                   MGISpinE()
  47.                   updateStage()
  48.                 end repeat
  49.                 set the locV of sprite d to 407
  50.                 updateStage()
  51.                 set the locH of sprite getAt(getAt(MGIInternetTextList, g), 1) to 2000
  52.                 wait(1)
  53.               end repeat
  54.               repeat with t = 1 to count(MGIMasterList)
  55.                 if count(getAt(MGIMasterList, t)) > 2 then
  56.                   if getAt(getAt(MGIMasterList, t), 5) = 39 then
  57.                     set the ink of sprite getAt(getAt(MGIMasterList, t), 1) to 36
  58.                     setAt(getAt(MGIMasterList, t), 5, 36)
  59.                   end if
  60.                 end if
  61.               end repeat
  62.               set the ink of sprite 1 to 36
  63.               repeat with x = 39 to 47
  64.                 set the ink of sprite x to 36
  65.               end repeat
  66.               cursor(-1)
  67.               set the locH of sprite 34 to 560
  68.               updateStage()
  69.               set MGIFindTV to 2
  70.               cursor(-1)
  71.             end if
  72.           end repeat
  73.         else
  74.           if (MGIFindTV = 3) and the mouseDown then
  75.             cursor(200)
  76.             set MGIIntroCounter to 0
  77.             repeat with d = MGIFoodPosterSprite to MGILastPosterSprite
  78.               set g to d - MGIFoodPosterSprite + 1
  79.               set the castNum of sprite MGINoiseSprite to getAt(getAt(MGIInternetTextList, g), 6)
  80.               set the castNum of sprite d to the castNum of sprite d + 1
  81.               set the castNum of sprite getAt(getAt(MGIInternetTextList, g), 1) to getAt(getAt(MGIInternetTextList, g), 2)
  82.               set the locH of sprite getAt(getAt(MGIInternetTextList, g), 1) to getAt(getAt(MGIInternetTextList, g), 3)
  83.               set the locV of sprite getAt(getAt(MGIInternetTextList, g), 1) to getAt(getAt(MGIInternetTextList, g), 4)
  84.               set the ink of sprite getAt(getAt(MGIInternetTextList, g), 1) to getAt(getAt(MGIInternetTextList, g), 5)
  85.               updateStage()
  86.               repeat with t = 1 to 30
  87.                 MGISpinE()
  88.                 if MGIIntroCounter = 3 then
  89.                   set MGIIntroCounter to 0
  90.                   set the castNum of sprite MGINoiseSprite to the castNum of sprite MGINoiseSprite - 3
  91.                   updateStage()
  92.                   next repeat
  93.                 end if
  94.                 set MGIIntroCounter to 1 + MGIIntroCounter
  95.                 set the castNum of sprite MGINoiseSprite to the castNum of sprite MGINoiseSprite + 1
  96.                 updateStage()
  97.               end repeat
  98.               set the castNum of sprite d to the castNum of sprite d - 1
  99.               set the locH of sprite getAt(getAt(MGIInternetTextList, g), 1) to 2000
  100.               set the castNum of sprite MGINoiseSprite to 58
  101.               set MGIIntroCounter to 0
  102.               updateStage()
  103.             end repeat
  104.             cursor(-1)
  105.           end if
  106.         end if
  107.         if MGIIntroCounter = 3 then
  108.           set MGIIntroCounter to 0
  109.           set the castNum of sprite MGINoiseSprite to 59
  110.           updateStage()
  111.           next repeat
  112.         end if
  113.         set MGIIntroCounter to 1 + MGIIntroCounter
  114.         set the castNum of sprite MGINoiseSprite to the castNum of sprite MGINoiseSprite + 1
  115.         updateStage()
  116.       end repeat
  117.       if MGIFindTV = 1 then
  118.         set the ink of sprite MGINoiseSprite to 39
  119.         set the castNum of sprite 47 to the castNum of sprite 47 + 1
  120.         set the locH of sprite getAt(getAt(MGIInternetTextList, 1), 1) to 2000
  121.         MGISpinE()
  122.         set the locH of sprite 2 to the mouseH
  123.         set the locV of sprite 2 to the mouseV
  124.       end if
  125.     end if
  126.     if not rollOver(MGILogoSprite) then
  127.       set the castNum of sprite MGINoiseSprite to 58
  128.       set MGIIntroCounter to 0
  129.       updateStage()
  130.     end if
  131.   end if
  132. end
  133.  
  134. on MGIPosterHighLight
  135.   global MGIFoodPosterSprite, MGILastPosterSprite, MGINoiseSprite, MGIIntroCounter, MGIInternetTextList, MGILaunchI, IFLCanChange, MGISTONEON
  136.   if MGISTONEON = 0 then
  137.     if MGILaunchI = 0 then
  138.       repeat with d = MGIFoodPosterSprite to MGILastPosterSprite
  139.         if rollOver(d) and not rollOver(34) then
  140.           set g to d - MGIFoodPosterSprite + 1
  141.           set the castNum of sprite MGINoiseSprite to getAt(getAt(MGIInternetTextList, g), 6)
  142.           set the castNum of sprite d to the castNum of sprite d + 1
  143.           set the castNum of sprite getAt(getAt(MGIInternetTextList, g), 1) to getAt(getAt(MGIInternetTextList, g), 2)
  144.           set the locH of sprite getAt(getAt(MGIInternetTextList, g), 1) to getAt(getAt(MGIInternetTextList, g), 3)
  145.           set the locV of sprite getAt(getAt(MGIInternetTextList, g), 1) to getAt(getAt(MGIInternetTextList, g), 4)
  146.           set the ink of sprite getAt(getAt(MGIInternetTextList, g), 1) to getAt(getAt(MGIInternetTextList, g), 5)
  147.           updateStage()
  148.           repeat while rollOver(d)
  149.             if rollOver(33) then
  150.               exit repeat
  151.             end if
  152.             if the mouseDown then
  153.               set MGILaunchI to g
  154.               exit repeat
  155.             end if
  156.             MGISpinE()
  157.             if MGIIntroCounter = 3 then
  158.               set MGIIntroCounter to 0
  159.               set the castNum of sprite MGINoiseSprite to the castNum of sprite MGINoiseSprite - 3
  160.               updateStage()
  161.               next repeat
  162.             end if
  163.             set MGIIntroCounter to 1 + MGIIntroCounter
  164.             set the castNum of sprite MGINoiseSprite to the castNum of sprite MGINoiseSprite + 1
  165.             updateStage()
  166.           end repeat
  167.           set the castNum of sprite d to the castNum of sprite d - 1
  168.           set the locH of sprite getAt(getAt(MGIInternetTextList, g), 1) to 2000
  169.           set the castNum of sprite MGINoiseSprite to 58
  170.           set MGIIntroCounter to 0
  171.           updateStage()
  172.         end if
  173.         if MGILaunchI <> 0 then
  174.           exit repeat
  175.         end if
  176.       end repeat
  177.     end if
  178.     if MGILaunchI <> 0 then
  179.       set MGILaunchI to 0
  180.       set IFLCanChange to 0
  181.       if the machineType < 200 then
  182.         set the locH of sprite 48 to 2000
  183.         set the castNum of sprite 36 to 157
  184.         set the locH of sprite 36 to 70
  185.         set the locV of sprite 36 to 166
  186.         set ARTNETUP to 0
  187.         updateStage()
  188.         repeat while 1
  189.           if ARTNETUP = 1 then
  190.             if word the mouseWord of field 157 = "YES" then
  191.               set ARTThisword to the mouseWord
  192.               set the foreColor of word ARTThisword of field 157 to 0
  193.               repeat while word the mouseWord of field 157 = "YES"
  194.                 if the mouseDown then
  195.                   set ARTYesOrCancel to 1
  196.                   exit repeat
  197.                 end if
  198.               end repeat
  199.               set the foreColor of word ARTThisword of field 157 to 255
  200.             end if
  201.             if word the mouseWord of field 157 = "NO" then
  202.               set ARTThisword to the mouseWord
  203.               set the foreColor of word ARTThisword of field 157 to 0
  204.               repeat while word the mouseWord of field 157 = "NO"
  205.                 if the mouseDown then
  206.                   set ARTYesOrCancel to 2
  207.                   exit repeat
  208.                   updateStage()
  209.                 end if
  210.               end repeat
  211.               set the foreColor of word ARTThisword of field 157 to 255
  212.             end if
  213.             if ARTYesOrCancel > 0 then
  214.               exit repeat
  215.             else
  216.               if (the mouseCast <> 157) and the mouseDown then
  217.                 beep()
  218.               end if
  219.             end if
  220.             next repeat
  221.           end if
  222.           if the mouseUp then
  223.             set ARTNETUP to 1
  224.           end if
  225.         end repeat
  226.         set ARTNETUP to 0
  227.         if ARTYesOrCancel = 2 then
  228.           set the locH of sprite 36 to 2000
  229.           updateStage()
  230.           repeat while the mouseDown
  231.           end repeat
  232.         else
  233.           set the castNum of sprite 36 to 155
  234.           set the locH of sprite 36 to 70
  235.           set the locV of sprite 36 to 195
  236.           updateStage()
  237.           repeat while the mouseDown
  238.           end repeat
  239.         end if
  240.       else
  241.         set the locH of sprite 48 to 2000
  242.         set the castNum of sprite 36 to 157
  243.         set the locH of sprite 36 to 70
  244.         set the locV of sprite 36 to 166
  245.         set ARTNETUP to 0
  246.         updateStage()
  247.         repeat while 1
  248.           if ARTNETUP = 1 then
  249.             if word the mouseWord of field 157 = "YES" then
  250.               set ARTThisword to the mouseWord
  251.               set the foreColor of word ARTThisword of field 157 to 0
  252.               repeat while word the mouseWord of field 157 = "YES"
  253.                 if the mouseDown then
  254.                   set ARTYesOrCancel to 1
  255.                   exit repeat
  256.                 end if
  257.               end repeat
  258.               set the foreColor of word ARTThisword of field 157 to 255
  259.             end if
  260.             if word the mouseWord of field 157 = "NO" then
  261.               set ARTThisword to the mouseWord
  262.               set the foreColor of word ARTThisword of field 157 to 0
  263.               repeat while word the mouseWord of field 157 = "NO"
  264.                 if the mouseDown then
  265.                   set ARTYesOrCancel to 2
  266.                   exit repeat
  267.                   updateStage()
  268.                 end if
  269.               end repeat
  270.               set the foreColor of word ARTThisword of field 157 to 255
  271.             end if
  272.             if ARTYesOrCancel > 0 then
  273.               exit repeat
  274.             else
  275.               if (the mouseCast <> 157) and the mouseDown then
  276.                 beep()
  277.               end if
  278.             end if
  279.             next repeat
  280.           end if
  281.           if the mouseUp then
  282.             set ARTNETUP to 1
  283.           end if
  284.         end repeat
  285.         set ARTNETUP to 0
  286.         if ARTYesOrCancel = 2 then
  287.           set the locH of sprite 36 to 2000
  288.           updateStage()
  289.           repeat while the mouseDown
  290.           end repeat
  291.         else
  292.           set the castNum of sprite 36 to 155
  293.           set the locH of sprite 36 to 70
  294.           set the locV of sprite 36 to 195
  295.           updateStage()
  296.           repeat while the mouseDown
  297.           end repeat
  298.           StartBrowser("html/room/index.htm")
  299.         end if
  300.       end if
  301.     end if
  302.   end if
  303. end
  304.